jQuery.noConflict();
Mageex = jQuery(function(a){
	function j(){
		var a=-1;
		navigator.appName=="Microsoft Internet Explorer"&&/MSIE ([0-9]{1,}[.0-9]{0,})/.exec(navigator.userAgent)!=null&&(a=parseFloat(RegExp.$1));
		return a
	}
	function k(a){
		var d=/\/[^\/]{0,}$/ig;
		return a[a.length-1]=="/"?(a=a.substring(0,a.length-1),a.match(d)+"/"):a.match(d)
	}
	var h;
	readyeasy=(function(e){
		
		var d=a(e.itemClass),c="productreview/index/view";
		Mageex.ProductReview.BASE_URL.indexOf("index.php")==-1&&(c="index.php/productreview/index/view");
		var f=Mageex.ProductReview.BASE_URL+c,c='<a id="productreview_handler" href="#" style="visibility:hidden;position:absolute;"><img alt="quickshop"';
		
			c+='src="'+ Mageex.ProductReview.ProductReview_IMG+'"';
		
		c+='class="ajax-loader" /></a>';
		a(document.body).append(c);
		var i=a("#productreview_handler img");
		readyfunction = jQuery(document).ready(function(){
			a(".products-grid li.item").mouseover(function(){
			
				c=this;
				var g=f;
				h=a(c).children(e.aClass);
			
				var b=h.attr("href");
				
				itype=b.indexOf(".html");
				if(itype==-1){
					positionkey=b.indexOf(".com/");
					b=b.substring(positionkey+5,b.length);
				}else{
					positionkey=b.lastIndexOf("/");
					
					b=b.substring(positionkey+1,b.length);
				};b=b.replace(/^\s+|\s+$/g,"");
				g=f+"/path/"+b;version=j();
				
				version<8&&version>-1&&(g=f+"/path"+b);
				a(e.imgClass,this).bind("mouseover",function(){
														var b=a(this).offset();
														a("#productreview_handler").attr("href",g).show().css({top:b.top+(this.clientHeight-i.outerHeight())/2+"px",left:b.left+(a(this).width()- i.width())/2+"px",visibility:"visible"})
				});
				a(c).bind("mouseout",function(){
											a("#productreview_handler").hide()})
				});
				a("#productreview_handler").bind("mouseover",function(){
											a(this).show()}).bind("click",function(){
												a(this).hide()});
												a("#productreview_handler").fancybox({width:815,height:500,autoScale:!1,padding:0,margin:0,transitionIn:"none",transitionOut:"none",type:"iframe",onComplete:function(){a.fancybox.showActivity();a("#fancybox-frame").unbind("load");a("#fancybox-frame").bind("load", function(){a.fancybox.hideActivity()})}})
										})})({itemClass:".products-grid li.item",aClass:"a.product-image",imgClass:".product-image img"})
});
